package com.cat.greedyAlgorithm;

/**
 * @author 曲大人的喵
 * @description https://leetcode.cn/problems/maximum-score-from-removing-stones/submissions/669842440/
 * @create 2025/10/12 14:38
 * @since JDK17
 */

public class Solution82 {
    public int maximumScore(int a, int b, int c) {
        int s = a + b + c, m = Math.max(Math.max(a, b), c);
        return Math.min(s / 2, s - m);
    }
}
